<template>
	<m-layout class="layout-box" title="关于我们" :is-mask-click="false" :mask-click="false">
		<view class="main">
			<view class="image-box flex-column flex-between">
				<image src="../../../static/images/logo1.png" mode=""></image>
				<m-icon :size="[217,69]" spa="20 0 139 0" type="logo1"></m-icon>
			</view>
			
			<!-- #ifdef APP -->
			<m-cell title="版本号" :rightText="version" @click="getAppVersion"></m-cell>
			<!-- #endif -->
			<!-- <m-cell title="关于搜鹭合伙人" rightIcon="icon-qianjin" @click="Jump('/pages/mine/aboutUs/info')"></m-cell> -->
			<!-- <m-cell title="经营执照" rightIcon="icon-qianjin"></m-cell> -->
			<m-cell v-if="getConfig(703)" title="备案号" rightIcon="" :rightText="getConfig(703)"></m-cell>
			<m-cell title="意见反馈"  border="0"  rightIcon="icon-qianjin" @click="Jump('/pages/mine/feedback/submitFeedback/submitFeedback')" />
		</view>
	</m-layout>
</template>

<script>
	import Updater from '@/utils/upgrade.js'
	// import { GetAppVersion, GetDictionaryValue } from '@/api/public.js'
	export default {
		data() {
			return {
				version: '1.0.0'
			};
		},
		async onLoad() {
			// #ifdef APP-PLUS
			plus.runtime.getProperty(plus.runtime.appid, (info) => {
				console.log('info====>', info)
				this.version = info.version;
			})
			// #endif
		},
		methods: {
			async getAppVersion() {
				const { isUpdate } = await Updater.check();
				if (!isUpdate) {
					this.Toast('当前已是最新版本')
				}
			},
			//升级检测
			async GetAppVersion() {
				GetAppVersion()
				uni.navigateTo({
					url: '/pages/upgrade',
				})
			},
		}
	}
</script>

<style lang="scss">
	.main {
		background-color: #fff;
		padding: 0 40rpx;

		.image-box {
			text-align: center;
			padding: 80rpx 0 20rpx;

			image {
				display: inline-block;
				width: 274rpx;
				height: 239rpx;
			}
		}

	}
</style>
